package com.huazheng.miaosha.web.dao;


import com.huazheng.miaosha.web.entity.StockEntity;

/**
 *
 *
 * @author zhanghuazheng
 * @email zhanghuazheng@zhanghz.work
 * @date 2021-01-23 19:38:45
 */

public interface StockDao  {
    int deleteByPrimaryKey(Integer id);

    int insert(StockEntity record);

    int insertSelective(StockEntity record);

    StockEntity selectByPrimaryKey(Integer id);

    StockEntity selectByPrimaryKeyForUpdate(Integer id);

    int updateByPrimaryKeySelective(StockEntity record);

    int updateByPrimaryKey(StockEntity record);

    int updateByOptimistic(StockEntity record);
}
